{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/writer/style/books.css">
{/block}
{block name="body"}
    {include file="public/topmenu" /}
    {include file="public/changepwd" /}
    <div class="mainWrap pageCenter cf">     
        {include file="public/leftmenu" /}
        <div class="mainRight pb260 fl">
	        <div class="crumbsWrap">
	        	<i><span>作品管理</span></i>
	    	</div>
		    <div class="msgBoxTitle">
		        <p class="f12 c555">当前作品总数<span id="bookCount" class="blue Num">{$books|count}</span>本</p>
		        <a id="createNovelBtn" class="create button" href="{:url('writer/booknovels/createstep1')}"><em class="icon"></em>创建作品</a>
		         
		    </div>
		         <!-- 存在作品 -->
		    <div id="bookManageExist" class="worksCtrlWrap">
		        <div class="worksListWrap mb20">
		            <table class="worklist-table" width="100%" border="0" cellspacing="0">
		                <colgroup>
		                    <col width="32px">
		                    <col width="220px">
		                    <col width="240px">
		                    <col width="100px">
		                    <col width="60px">
		                    <col width="60px">
		                    <col width="160px">
		                </colgroup>
		                <thead>
		                <tr>
		                    <th></th>
		                    <th class="tl">书名</th>
		                    <th class="tl">最新章节</th>
		                    <th class="center">作品分类</th>
		                    <th>人气指数</th>
		                    <th>状态</th>
		                    <th class="center">操作</th>
		                </tr>
		                </thead>
		                <tbody id="novelList">
		               	</tbody>
		            </table>
		        </div>
		        <!-- 翻页组件 -->
		        <div id="pager" class="pageBox fr" style="display: block;"></div>
		    </div>
			 <!-- 没有作品 -->
			<div id="bookManageNone" class="worksCtrlWrap hidden">
				<div class="null">
					<img src="/public/writer/images/null.png" width="204" height="148">
					<p>你没有发布任何作品，<a class="button"  href="{:url('writer/booknovels/createstep1')}">创建作品</a></p>
				</div>
			</div>

        </div>
    </div>
    {include file="public/footer" /}
	
{/block}
{block name="script"}
<script type="text/javascript" src="/public/writer/js/contentv2_novelList.js"></script>
<script type="text/javascript">
    $(function () {
        var imgUrl = "";
        var artidx = "0";
        var selectid = "0";
        var articlename = "";

        CS.page.bookNovels.novelList.init(imgUrl,artidx,articlename,selectid);
    });
    $('#novelList').on('mouseenter', 'tr',
    function() {
        $(this).addClass('active').siblings('tr').removeClass('active');
    });
</script>
{/block}


